package com.woniu.controller.homepage;

import com.woniu.service.backpage.IOrdersService;
import com.woniu.service.homePage.IOrdersHomeService;
import com.woniu.util.ResData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 李松桦
 * @data 2023/3/10 17:27
 */
@RestController
@RequestMapping("/app/orders")
public class OrdersHomeController {
    @Autowired
    IOrdersHomeService iOrdersHomeService;


    // 查询订单总数
    @RequestMapping("/findOrdersCount")
    public ResData<?> findOrdersCount(){
        return iOrdersHomeService.findOrdersCount();
    }

    //查询成交总金额
    @RequestMapping("/queryActualAmount")
    public ResData<?> queryActualAmount(){
        return iOrdersHomeService.queryActualAmount();
    }
}
